package com.cenntro.oss.model.vo;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.cenntro.common.model.vo.BaseVO;
import com.cenntro.oss.valid.Valid;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class VehicleInsertVO extends BaseVO {

	@NotNull(message = "id不能是空", groups=Valid.update.class)
	private Integer devId;
	/** 车型Id */
	@ApiModelProperty(value = "车架号")
	@NotBlank(message = "车架号不能是空")
	private String vin;//carNub原来字段
	@ApiModelProperty(value = "车辆模型")
	@NotNull(message = "车辆类型不能是空")
	private Integer carId;
	@ApiModelProperty(value = "出厂日期")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date buildTime;
	@ApiModelProperty(value = "imei")
	@NotBlank(message = "imei不能是空")
	private String imei;
	@ApiModelProperty(value = "客户id")
	private Integer agentId;
	@ApiModelProperty(value = "销售区域")
	private String saleCity;
	@ApiModelProperty(value = "国家")
	private String saleCountry;
	@ApiModelProperty(value = "车牌号")
	private String carNo;
	@ApiModelProperty(value = "车辆颜色")
	private String color;
	@ApiModelProperty(value = "购买日期")
	private Date buyTime;
	@ApiModelProperty(value = "发货日期")
	private Date sendTime;
	@ApiModelProperty(value = "配件")
	private String parts;
	
	@ApiModelProperty(value = "总装厂地址")
    private String dapCity;
	
	@ApiModelProperty(value = "总装厂")
    private String dapName;
	
	@ApiModelProperty(value = "bomId")
    private Integer bomId;
	
	@ApiModelProperty(value = "绿色环保清单")
    private String greenListNum;

	

}
